package com.coolxiaoyao.test.query;

/**
 * @author Kerry on 18/09/20
 */

public class ResultEntityQuery {

    /**
     * deviceId : d5e8bf93-22cc-4e78-894d-2e608416f4ab
     * commandId : 16f18a7eb7464c3c94071b8583fee0ae
     * result : {"resultCode":"SENT","resultDetail":null}
     */

    private String deviceId;
    private String commandId;
    private ResultEntity result;

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getCommandId() {
        return commandId;
    }

    public void setCommandId(String commandId) {
        this.commandId = commandId;
    }

    public ResultEntity getResult() {
        return result;
    }

    public void setResult(ResultEntity result) {
        this.result = result;
    }

    public static class ResultEntity {
        @Override
        public String toString() {
            return "ResultEntity{" +
                    "resultCode='" + resultCode + '\'' +
                    ", resultDetail=" + resultDetail +
                    '}';
        }

        /**
         * resultCode : SENT
         * resultDetail : null
         */


        private String resultCode;
        private Object resultDetail;

        public String getResultCode() {
            return resultCode;
        }

        public void setResultCode(String resultCode) {
            this.resultCode = resultCode;
        }

        public Object getResultDetail() {
            return resultDetail;
        }

        public void setResultDetail(Object resultDetail) {
            this.resultDetail = resultDetail;
        }
    }

    @Override
    public String toString() {
        return "ResultEntityQuery{" +
                "deviceId='" + deviceId + '\'' +
                ", commandId='" + commandId + '\'' +
                ", result=" + result +
                '}';
    }
}
